package io.renren.controller;

import io.renren.common.utils.HttpContextUtils;
import io.renren.interceptor.AuthorizationInterceptor;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public abstract class AbstractController {

	protected Logger logger = LoggerFactory.getLogger(getClass());

	protected Long getUserId() {
		return (Long) HttpContextUtils.getHttpServletRequest().getAttribute(AuthorizationInterceptor.USER_KEY);
	}
}
